<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品查询</title>
</head>
<script language="javascript">
	function operOrdDetal3(data){
		if(data[0]['status']=='ok')
		{	var len = data[0]['data'].length;
			if(len>0)
			{
			var htmlstr ='';
				for(i=1;i<=len;i++)
				{
				htmlstr = htmlstr+ '<br>记录'+i+': 简码'+data[0]['data'][i-1]['simple_code']+'数量'+data[0]['data'][i-1]['count']
				+'位置码'+data[0]['data'][i-1]['location_code']
				+'入库流水号'	+data[0]['data'][i-1]['in_fluNum']+'</br>';
				}
				
			}
			else
			{
			var htmlstr = '<h1>流水号为'+data[0]['in_fluNum']+'的入库单,<br/>详单数量为0</h1>'
			}
			var myWindow3 = function(){
			new MUI.Window({
				id: 'htmlpage',
				content: htmlstr,
				width: 420,
				height: 150
			});
			}
		myWindow3();
		}
	}
	
function ckq_dpin(id){
var dpdt_id = id.substring(2);
		var myRequest = new Request.JSON({
		method: 'post', 
		url: '__APP__/Depot/getDetailRec',
		headers: 'Content-Type:text/html; charset=utf-8',
		data: 'dpdt_id='+dpdt_id,
		onSuccess: function(data){
			operOrdDetal3(data);
		},
		onFailure: function(){
			$('result').set('text', '您的请求失败了.');
				}	
		}).send(); 
}
</script>
<body>

<!--主页面开始-->
<div id="maindptPage">

<!--显示商品列表开始-->
	<!--显示数据列表-->
	<div id="List" style="text-align:center">
		<!--空记录开始-->
		<if condition="count($List) elt 0">
		<h3>没有查询到时间范围："{$from} "到&quot; {$to} &quot; 的入库记录信息</h3>
		<br />
		</if>
		<!--空记录结束-->	
		<!--数据集显示开始-->
		<!--商品分类编码默认不显示，显示商品列表-->
		<div id="pdtShow"  >
		<if condition="count($List) gt 0">
		<h3 style="text-align:center">关键词从" {$from} "到&quot; {$to} &quot;查询到的入库记录列表</h3>
			<table align="center" bgcolor="#e7efff" width="100%" border="1" cellspacing="1" cellpadding="1" style="font-size:12px;">
                    <tr>
                        <td bgcolor="#FF9933">显示详单</td>
                        <td bgcolor="#FF9933">入库id</td>
                        <td bgcolor="#FF9933">入库流水号</td>						
                        <td bgcolor="#FF9933">入库人</td>						
                        <td bgcolor="#FF9933">清点核对人</td>

                        <td bgcolor="#FF9933">隶属商家id</td>
                        <td bgcolor="#FF9933">入库日期</td>						
                    </tr>
						<div id="list" >
                          <volist name="List" id="vo">
                            <tr  onMouseOver="this.style.backgroundColor='#f7f7f7'"
							onmouseout="this.style.backgroundColor='transparent'" id="{$vo.id_tb_depot_in}" >
							  <td><img src="__PUBLIC__/Images/allow.gif" id="sh{$vo.id_tb_depot_in}" onClick="ckq_dpin(this.id)"/></td>
							  <td>{$vo.id_tb_depot_in}</td>
                              <td id="{$vo.id_tb_depot_in}in_fluNum">{$vo.in_fluNum}</td>	
                              <td>{$vo.in_person}</td>							  
                              <td>{$vo.count_person}</td>
                              <td>{$vo.userid}</td>
                              <td>{$vo.date}</td>							  							  
                            </tr>
                          </volist>
                        </div>
					<tr>
                    <td align="center" colspan="13">
							<?php
							if(isset($page)) echo $page;		
							?>	</td>
                    </tr>
		  	</table>
		<!--数据集显示结束-->
		</if>
		</div>
	</div>
		
<!--显示商品列表结束-->
	
</div>
<!--主页面结束-->
</body>
</html>
